import { AppRouteModule } from "/@ts/router/types";
import { LOGIN, REGISTER } from "/@ts/router/constant";
const LoginRoute: AppRouteModule = {
  path: "/login",
  name: LOGIN,
  component: () => import("/@/views/login/Login.vue"),
  hidden: true,
  meta: {
    title: "登录",
  },
};
// const RegisterRoute: AppRouteModule = {
//   path:  '/register',
//   name: REGISTER,
//   component: () => import('/@/views/login/register.vue'),
//   meta: {
//     title: "注册",
//   }
// };
 
export default [LoginRoute,
   {
    path: "/system/dict-data",
    component: () => import("/@/layouts/index.vue"),
    hidden: true,
    // permissions: ['system:dict:list'],
    children: [
      {
        path: "index/:dictId(\\d+)",
        component: () => import("/@/views/system/dict/data.vue"),
        name: "Data",
        meta: { title: "字典数据" },
      },
    ],
  },
  {
    path: "/monitor/job-log",
    component: () => import("/@/layouts/index.vue"),
    hidden: true,
    // permissions: ['system:dict:list'],
    children: [
      {
        path: "index/:jobId(\\d+)",
        component: () => import("/@/views/monitor/job/log.vue"),
        name: "JobLog",
        meta: { title: "调度日志" },
      },
    ],
  },
  {
    path: "/system/role-auth",
    component: () => import("/@/layouts/index.vue"),
    hidden: true,
    // permissions: ['system:role:edit'],
    children: [
      {
        path: "user/:roleId(\\d+)",
        component: () => import("/@/views/system/role/authUser.vue"),
        name: "AuthUser",
        meta: { title: "分配用户" },
      },
    ],
  },
  {
    path: "/system/user-auth",
    component: () => import("/@/layouts/index.vue"),
    hidden: true,
    // permissions: ['system:role:edit'],
    children: [
      {
        path: "role/:userId(\\d+)",
        component: () => import("/@/views/system/user/authUser.vue"),
        name: "AuthRole",
        meta: { title: "分配角色" },
      },
    ],
  },
];
